8.3
HIGH CVSS 3.1
CVE-2026-39884
MCP Server Kubernetes has Argument Injection in its port_forward tool via space-splitting
Description

mcp-server-kubernetes is a Model Context Protocol server for Kubernetes cluster management. Versions 3.4.0 and prior contain an argument injection vulnerability in the port_forward tool in src/tools/port_forward.ts, where a kubectl command is constructed via string concatenation with user-controlled input and then naively split on spaces before being passed to spawn(). Unlike all other tools in the codebase which correctly use array-based argument passing with execFileSync(), port_forward treats every space in user-controlled fields (namespace, resourceType, resourceName, localPort, targetPort) as an argument boundary, allowing an attacker to inject arbitrary kubectl flags. This enables exposure of internal Kubernetes services to the network by injecting --address=0.0.0.0, cross-namespace targeting by injecting additional -n flags, and indirect exploitation via prompt injection against AI agents connected to the MCP server. This issue has been fixed in version 3.5.0.

INFO

Published Date :

April 15, 2026, 4:17 a.m.

Last Modified :

April 23, 2026, 5:22 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-39884 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Suyogs mcp-server-kubernetes
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH MITRE-CVE
CVSS 3.1 HIGH [email protected]
CVSS 3.1 HIGH [email protected]
Solution
Update mcp-server-kubernetes to version 3.5.0 or later to fix argument injection.
  • Update mcp-server-kubernetes to version 3.5.0.
  • Ensure kubectl commands use array-based argument passing.
Public PoC/Exploit Available at Github

CVE-2026-39884 has a 2 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-39884.

URL Resource
https://github.com/Flux159/mcp-server-kubernetes/releases/tag/v3.5.0 Product Release Notes
https://github.com/Flux159/mcp-server-kubernetes/security/advisories/GHSA-4xqg-gf5c-ghwq Mitigation Vendor Advisory
https://github.com/Flux159/mcp-server-kubernetes/security/advisories/GHSA-4xqg-gf5c-ghwq Mitigation Vendor Advisory
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-39884 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Cathedral-Grade Security for AI Agents. Attack vectors updated daily. Local-first, zero API cost. MIT licensed.

Python

Updated: 1 week, 6 days ago
5 stars 0 fork 0 watcher
Born at : March 13, 2026, 5:10 p.m. This repo has been linked 57 different CVEs too.

None

Shell HCL

Updated: 1 week, 3 days ago
0 stars 0 fork 0 watcher
Born at : Nov. 30, 2025, 10:59 a.m. This repo has been linked 2 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-39884 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-39884 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Apr. 23, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
    Added CPE Configuration OR *cpe:2.3:a:suyogs:mcp-server-kubernetes:*:*:*:*:*:node.js:*:* versions up to (excluding) 3.5.0
    Added Reference Type GitHub, Inc.: https://github.com/Flux159/mcp-server-kubernetes/releases/tag/v3.5.0 Types: Product, Release Notes
    Added Reference Type CISA-ADP: https://github.com/Flux159/mcp-server-kubernetes/security/advisories/GHSA-4xqg-gf5c-ghwq Types: Mitigation, Vendor Advisory
    Added Reference Type GitHub, Inc.: https://github.com/Flux159/mcp-server-kubernetes/security/advisories/GHSA-4xqg-gf5c-ghwq Types: Mitigation, Vendor Advisory
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Apr. 15, 2026

    Action Type Old Value New Value
    Added Reference https://github.com/Flux159/mcp-server-kubernetes/security/advisories/GHSA-4xqg-gf5c-ghwq
  • New CVE Received by [email protected]

    Apr. 15, 2026

    Action Type Old Value New Value
    Added Description mcp-server-kubernetes is a Model Context Protocol server for Kubernetes cluster management. Versions 3.4.0 and prior contain an argument injection vulnerability in the port_forward tool in src/tools/port_forward.ts, where a kubectl command is constructed via string concatenation with user-controlled input and then naively split on spaces before being passed to spawn(). Unlike all other tools in the codebase which correctly use array-based argument passing with execFileSync(), port_forward treats every space in user-controlled fields (namespace, resourceType, resourceName, localPort, targetPort) as an argument boundary, allowing an attacker to inject arbitrary kubectl flags. This enables exposure of internal Kubernetes services to the network by injecting --address=0.0.0.0, cross-namespace targeting by injecting additional -n flags, and indirect exploitation via prompt injection against AI agents connected to the MCP server. This issue has been fixed in version 3.5.0.
    Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L
    Added CWE CWE-88
    Added Reference https://github.com/Flux159/mcp-server-kubernetes/releases/tag/v3.5.0
    Added Reference https://github.com/Flux159/mcp-server-kubernetes/security/advisories/GHSA-4xqg-gf5c-ghwq
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.